class Computer{

    // 私有属性
    #item = null;

    // 属性值 需要进行关联
    get memory(){
        // return 123;
        return this.#item || 123;
    }

    set memory(v){
        this.#item =`《${v}》` ;
    }
}


let c1 = new Computer();

// 设置一个值
c1.memory = 456;

console.log(c1);
 
// Private field '#item' must be declared in an enclosing class
console.log(c1.#item);
